package com.study.spmongodb.wwj.thread2.char18;

/**
 * @author MI
 * @version 1.0
 * @date 2020/12/9 22:02
 * @likk ActiveObject#makeString
 */
public class MakeStringRequest extends MethodRequest {

    private final int count;
    private final char fillChar;

    public MakeStringRequest(Servant servant, FutureResult futureResult, int count, char fillChar) {
        super(servant, futureResult);
        this.count = count;
        this.fillChar = fillChar;
    }

    @Override
    public void execute() {

        final Result result = servant.makeString(count, fillChar);

        futureResult.setResult(result);


    }
}
